﻿using Microsoft.AspNetCore.Builder;

namespace Ceri.Platform.EAM_NEW.API.Extensions.Middlewares
{
    public static class MiddlewareHelpers
    {

        /// <summary>
        /// 异常处理中间件
        /// </summary>
        /// <param name="app"></param>
        /// <returns></returns>
        public static IApplicationBuilder UseExceptionHandlerMiddle(this IApplicationBuilder app)
        {
            return app.UseMiddleware<ExceptionHandlerMiddleware>();
        }



    }
}
